﻿﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>登录-新闻文章编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="__PUBLIC__/NewsAdmin/css/style.css">
    <![if !IE]><script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.js"></script><![endif]>
    <!--[if IE]> <script src="http://apps.bdimg.com/libs/jquery/1.9.0/jquery.js"></script> <![endif]-->
    <script src="__PUBLIC__/NewsAdmin/js/style.js"></script>
</head>
<body style="background-image:url(__PUBLIC__/NewsAdmin/images/bg.png);background-position:top center;">
<!--登录部分 begin-->
<div class="main_from">
    <div class="land">
        <!--background-->
    </div>
    <div class="land_form">
        <form>
            <p id="land_form_title">请输入你的信息</p>
            <p class="land_form_input" id="land_form_input_id"><label  class="land_form_input" id="land_form_input_label_id">账号</label><input type="text" name="admin_id" id="admin_id"></p>
            <p class="land_form_input" id="land_form_input_key"><label  class="land_form_input" id="land_form_input_label_key">密码</label><input type="password" name="admin_key" id="admin_key"></p>
            <p><input type="button" name="admin_click" value="登&nbsp;&nbsp;&nbsp;&nbsp;录" id="admin_click"></p>
        </form>
        <p style='margin-top:17%;display:none' id="google">微融智联内部网站管理系统！<br />请使用google浏览器！</p>
    </div>
</div>
<p style="position:absolute;bottom:50px;left:0;right:0;margin:auto;text-align:center;font-size:12px;">请确保您的浏览器分标率达到1200*700以上，否则界面显示会出现异常！</p>
<!--登录部分 stop-->
<script>
    $(function(){
        $('#admin_click').click(function(){
//            $(this).val('请等待…………');
            $.ajax({
                type: "post",
                url: "{:U('NewsAdmin/SignIn')}",
                data: {username:$("#admin_id").val(), userkey:$("#admin_key").val()},
                dataType: "text",
                success: function(data){
                    if(data == "1"){
                        window.location.href="{:U('NewsAdmin/index')}";
                    }else{
                        alert(data);
                    }
                }
            });
        })
    })
</script>
</body>
</html>